<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<h1>${result}</h1>
<h1>当前在线访问人数：${numSessions}</h1>
<h1>当前登陆人数：${onlineUserNumber}</h1>
用户列表:<br/>
<c:forEach items="${onlineUser}" var="user"  varStatus="u">
    第[${u.index+1}]位，用户名：[${user}]。<br/>
</c:forEach>
<form action="/exit" method="post">
    <input type="submit" value="退出登录">
</form>
</body>
</html>